<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>select多选项</title>
	
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="this is my page">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    
    <!--<link rel="stylesheet" type="text/css" href="./styles.css">-->

  </head>
  
  <body>
  <script type="text/javascript">
  	 function test(){
	  	var slt = document.forms[0].elements["zyhy"];
	  	alert(slt.value);
	  	var slts = new Array();
	  	slts = document.forms[0].elements["zyhy"];
	  	alert(slts.length);
	 }
  </script>
      <form action="">
      	<dl>
      	<dd><select size=8 name="zyhy" multiple>
      		<option value=1 selected>1</option>
      		<option value=2 selected>2</option>
      		<option value=3 >3</option>
      		<option value=4 >4</option>
      		</select>
      	</dd>
      	<dd>
      	<input type=button value="test" onclick="test()" >
      	</dl>
      </form>
  </body>
</html>
